package main

import (
	"fmt"
	"go-lurker/lurker"
)

func main() {
	lk := lurker.CreateLurker()
	lk.SetWriteFileLog(true).SetItem(&lurker.LurkerItem{
		Url:      "http://www.baidu.com",
		StartTag: "<title>",
		EndTag:   "</title>",
	}).SetItem(&lurker.LurkerItem{
		Url:      "http://www.jdon.com",
		StartTag: "<div class='wrap-footer'>",
		EndTag:   "</div>",
	}).SetItem(&lurker.LurkerItem{
		Url:      "http://www.taobao.com",
		StartTag: "<title>",
		EndTag:   "</title>",
	})
	lk.Run(func(data string) {
		fmt.Println(data)
	})
}
